package com.tangcco.lockwell.repository;

import com.tangcco.lockwell.domain.UserAnswerRecord;
import com.tangcco.lockwell.domain.dto.StatisticalStudyReportDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAnswerRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserAnswerRecord record);

    int insertSelective(UserAnswerRecord record);

    UserAnswerRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserAnswerRecord record);

    int updateByPrimaryKey(UserAnswerRecord record);

    List<StatisticalStudyReportDto> statisticalByUserId(@Param("userId")Integer userId);
}